<template>
	<view class="withdraw">
		<view class="withdraw-card">
			<view class="pay-card">
				<view class="card-title">充值金额</view>
				<view class="card-money">
					<view class="card-icon">￥</view> <input class="card-ipt" type="text" value="" v-model="payMoney" />
				</view>
			</view>
			<view class="cart-msg">
				<view class="left-msg">
					<view class="service">服务费<text class="text">￥0</text>，可用余额<text class="text">￥400</text></view>
				</view>
				<view class="right-msg">全部提现</view>
			</view>
		</view>
		<view class="opt-bankcart">
			<view class="input-item">
				<view class="ipt-title">选择银行卡</view>
				<picker @change="bindPickerChange" :value="index" :range="array">
					<view class="ipt-name_">{{array[index]}}</view>
				</picker>
				<!-- <input class="ipt-name" disabled type="text" placeholder="请选择" placeholder-class="ipt-c"> -->
				<image class="ipt-img" src="../../static/my-icon/bottom.png" mode=""></image>
			</view>
		</view>
		<view class="tishi">
			提交后，预计1-3个工作日到账。
		</view>
		<view class="btn-p">
			<view class="pay-btn-p">
				提现
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				array: ['建设银行', '招商银行', '农业银行'],
				index: 0,
				payMoney: '100'
			};
		},
		methods: {
			bindPickerChange: function(e) {
				console.log('picker发送选择改变，携带值为', e.detail.value)
				this.index = e.detail.value
			},
		},
	}
</script>

<style lang="scss">
	.withdraw {
		padding-top: 15rpx;
	}

	.withdraw-card {
		width: 714rpx;
		height: 255rpx;
		margin: 0 18rpx 20rpx;
		background-color: #ffffff;
		border-radius: 15rpx;
		box-sizing: border-box;

		.pay-card {
			height: 190rpx;
			padding: 53rpx 0 0 34rpx;
			box-sizing: border-box;
			border-bottom: 1px solid #e5e5e5;

			.card-title {
				font-size: 24rpx;
				letter-spacing: 2rpx;
				color: #363636;
				margin-bottom: 16rpx;
			}

			.card-money {
				display: flex;
				align-items: flex-end;
				font-size: 30rpx;
				color: #d81e06;

				.card-icon {
					margin-bottom: 4rpx;
					margin-right: 10rpx;
				}

				.card-ipt {
					font-size: 40rpx;
					font-weight: bold;
					color: #d81e06;
				}
			}
		}

		.cart-msg {
			padding: 0 54rpx 0 33rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin-top: 20rpx;

			.left-msg {
				.service {
					font-size: 22rpx;
					letter-spacing: 2rpx;
					color: #989898;

					.text {
						color: #363636;
					}
				}
			}

			.right-msg {
				font-size: 22rpx;
				letter-spacing: 2rpx;
				color: #c60122;
			}
		}
	}

	.opt-bankcart {
		width: 100%;
		height: 91rpx;
		background-color: #fff;
		display: flex;
		align-items: center;

		.input-item {
			display: flex;
			align-items: center;
			padding: 0 50rpx;

			.ipt-title {
				font-size: 30rpx;
				letter-spacing: 3rpx;
				color: #333333;
				margin-right: 82rpx;
			}

			.ipt-name_ {
				width: 380rpx;
				font-size: 26rpx;
				letter-spacing: 3rpx;
				color: #696969;
			}

			.ipt-img {
				width: 24rpx;
				height: 13rpx;
			}
		}

	}

	.tishi {
		margin-left: 52rpx;
		font-size: 20rpx;
		line-height: 72rpx;
		letter-spacing: 2rpx;
		color: #989898;
	}
	.btn-p {
		display: flex;
		align-items: center;
		justify-content: center;
	
		.pay-btn-p {
			display: flex;
			align-items: center;
			justify-content: center;
			margin-top: 348rpx;
			width: 713rpx;
			height: 100rpx;
			background-color: #c60122;
			border-radius: 50rpx;
			font-size: 36rpx;
			letter-spacing: 4rpx;
			color: #ffffff;
		}
	}
</style>
